package com.material.buy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.material.common.annotation.Excel;
import com.material.common.core.domain.BaseEntity;

/**
 * vip充值记录对象 vip_recharge_record
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class VipRechargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /**
     * 工厂id
     */
    private Long factoryId;

    /** 充值记录编号 */
    @Excel(name = "充值记录编号")
    private String orderNo;

    /** 交易的用户 */
    @Excel(name = "交易的用户")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userName;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal amount;

    /** 服务的有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务的有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceDate;

    /** 第三方交易号 */
    @Excel(name = "第三方交易号")
    private String tradeNo;

    /** 充值状态 */
    @Excel(name = "充值状态")
    private Integer tradeStatus;

    /** 充值完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setServiceDate(Date serviceDate) 
    {
        this.serviceDate = serviceDate;
    }

    public Date getServiceDate() 
    {
        return serviceDate;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setTradeStatus(Integer tradeStatus) 
    {
        this.tradeStatus = tradeStatus;
    }

    public Integer getTradeStatus() 
    {
        return tradeStatus;
    }
    public void setCompleteTime(Date completeTime) 
    {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() 
    {
        return completeTime;
    }

    public Long getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Long factoryId) {
        this.factoryId = factoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("amount", getAmount())
            .append("serviceDate", getServiceDate())
            .append("tradeNo", getTradeNo())
            .append("tradeStatus", getTradeStatus())
            .append("remark", getRemark())
            .append("completeTime", getCompleteTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
